<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>第一个阶段总结项目</title>
  <link rel="stylesheet" href="../3rd/layui/css/layui.css">
  <link rel="stylesheet" href="../css/common.css">
  <link rel="stylesheet" href="css/total01.css">
</head>

<body>
  <h1 class="tc">简单商品信息管理系统</h1>
  <!-- 数据添加的表单 -->
  <div class="layui-form" style="display: flex;">
    <select id="selType"></select>
    <input class="layui-input" type="text" id="txtName" placeholder="名称">
    <input class="layui-input" type="text" id="txtPrice" placeholder="价格">
    <button id="btnAdd" class="layui-btn">添加</button>
    <button id="btnReset" class="layui-btn layui-btn-danger">重置</button>
  </div>
  <hr>
  <!-- 数据表格 -->
  <table class="layui-table">
    <thead>
      <tr>
        <th>序号</th>
        <th>商品分类</th>
        <th>商品名称</th>
        <th>价格</th>
        <th>操作</th>
      </tr>
    </thead>

    <tbody id="tbData"></tbody>

  </table>

  <!-- 修改的弹出界面 -->
  <div id="divModify">
    <div>
      <div class="tc">商品信息修改</div>
      <div>
        <select id="selMtype"></select>
      </div>
      <div>
        <input type="text" id="txtMname">
      </div>
      <div>
        <input type="text" id="txtMprice">
      </div>
      <div>
        <button id="btnToModify">保存</button>
        <button id="btnClose">关闭</button>
      </div>
    </div>
  </div>

  <script src="../3rd/layui/layui.js"></script>
  <script src="js/total01.js"></script>
</body>

</html>